package com.hn.zhijian.system.rsasdk;

public class ResolverException extends RuntimeException {
    /**
     * 状态编码
     */
    private int code;

    private String msg;

    public ResolverException(int code, String msg) {
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public ResolverException(ResolveException e) {
        super(e.getValue());
        this.code = e.getKey();
        this.msg = e.getValue();
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
